package SSM.Chat.Exception;

// 处理业务异常
public class BusinessException extends RuntimeException{

    private  Integer Code;

    public Integer getCode() {
        return Code;
    }

    public void setCode(Integer code) {
        Code = code;
    }


    public BusinessException(String message, Integer code) {
        super(message);
        Code = code;
    }

    public BusinessException(String message, Throwable cause, Integer code) {
        super(message, cause);
        Code = code;
    }


}
